package member.controller;

public class CommandControllerMapping {

	public static Controller getController(String command){
		
		Controller ctr = null;
		if(command.equals("login")){
			ctr = new LoginController();			
		}else if(command.equals("logout")){
			ctr =  new LogoutController();
		}else if(command.equals("getAllMemberInfo")){
			ctr =  new GetAllMemberInfoController();
		}else if(command.equals("getMemberInfo")){
			ctr =  new GetLoginMemberInfoController();
		}else if(command.equals("modifyForm")){
			ctr =  new ModifyFormController();
		}else if(command.equals("modifyMember")){
			ctr =  new ModifyMemberController();
		}else if(command.equals("removeMember")){
			ctr =  new RemoveMemberController();
		}else if(command.equals("joinMember")){
			ctr =  new JoinMemberController();
		}else if(command.equals("searchByMileageRange")){
			ctr =  new SearchMemberByMileageRangeController();
		}else if(command.equals("searchMemberByName")){
			ctr =  new SearchMemberByNameController();
		}//Ajax 처리
		else if(command.equals("checkIdDuplicate")){//id 중복체크
			ctr = new IDDuplicateCheckController();
		}else if(command.equals("searchByMileageRange2")){//마일리지로 조회
			ctr = new SearchMemberByMileageRangeController2();
		}else if(command.equals("searchMemberByName2")){
			ctr =  new SearchMemberByNameController2();
		}
		return ctr;
	}
}
